include ../.env
export $(shell sed 's/=.*//' ../.env)


DOCKERFILE=Dockerfile
ZK_IMAGE_NAME=${IMAGE_REPO}/zk-devel:${ZK_VERSION}
PUSH=false

hbase:
	cd ./build && docker build -t ${ZK_IMAGE_NAME}  \
	--build-arg IMAGE_REPO=${IMAGE_REPO}  \
	--build-arg JDK_VERSION=${JDK_VERSION} \
	--build-arg ZK_VERSION=${ZK_VERSION} \
	-f ${DOCKERFILE} .
ifeq (${PUSH},true)
	docker push ${HBASE_IMAGE_NAME}
endif

.PHONY: compose
compose:
	cd compose && docker compose up -d

.PHONY: compose-clean
compose-clean:
	cd compose && docker compose down